import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import electron from "vite-plugin-electron/simple";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    electron({
      main: {
        // `build.lib.entry的快捷方式`
        entry: "electron/main.js",
      },
      preload: {
        //`build.rollupOptions.input的快捷方式`
        input: "electron/preload.js",
      },
      // 可选：在渲染器进程中使用Node.js API
      renderer: {},
    }),
  ],
});
